import Vue from 'vue'
import axios from 'axios'
// 1、引入第三方ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI);
// 2、设置过滤器 
Vue.filter("handleString", function (val) {
    if (val.length > 3) {
      val = val.slice(0, 3) + '...'
    }
    return val;
  })
  //3、axios
Vue.prototype.$http = axios;
//4、配置全局组件
import Loading from '../components/Loading.vue'
Vue.component("Loading",Loading);